//
//  MailCompose.h
//  Speedater
//
//  Created by NgoThang on 1/3/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "MBProgressHUD.h"
#import "CustomTextField.h"

@interface MailCompose : UIViewController <MBProgressHUDDelegate, UITextFieldDelegate, UITableViewDelegate, UITableViewDataSource, UIScrollViewDelegate>
{
    BOOL keyboardIsShown;
    NSMutableData *responseData;
    NSInteger requestMode;
    MBProgressHUD *HUD;
}

@property (nonatomic, retain) IBOutlet UIScrollView *myScrollView;
@property (nonatomic, retain) IBOutlet UITabBar *myTabBar;
@property (nonatomic, retain) IBOutlet CustomTextField *nameTextField, *subjectTextField;
@property (nonatomic, retain) IBOutlet UITextView *bodyTextView;
@property (nonatomic, retain) IBOutlet UIButton *submitButton;

@property (nonatomic, retain) NSString *username, *subject;

@property (nonatomic, retain) NSMutableArray *pastUsernames, *autocompleteUsernames;
@property (nonatomic, retain) UITableView * autocompleteTableView;

- (IBAction)submitButtonClick:(id)sender;

@end
